/*
 * Copyright user2010
 * All rights reserved
 */

package org.myorg.applitest.gui.swing.components.panel;

import java.awt.event.ActionListener;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

/**
 *
 * @author user
 */
public class PnlNewItmClt extends JPanel{
    public PnlNewItmClt(ActionListener lst){
        initComponents(lst);

    }

    protected void initComponents(ActionListener lst){
        this.pnlID = new PnlIdtHmn();
        this.pnlAdr = new PnlAdressePostale();

        this.pnlEml = new pnlEmail();


        jphoto = new javax.swing.JScrollPane();
        photo = new javax.swing.JTextArea();

        command = new PnlBtnGrpCommand(lst);



        photo.setColumns(20);
        photo.setRows(5);
        jphoto.setViewportView(photo);




        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                
                        .addComponent(pnlID, javax.swing.GroupLayout.DEFAULT_SIZE, 625, Short.MAX_VALUE)
                        .addComponent(pnlAdr, javax.swing.GroupLayout.DEFAULT_SIZE, 300, 300)
                        .addComponent(pnlEml, 500, 500, 500)


                    
                    .addComponent(command, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 271, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlID, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(15, 15, 15)
                .addComponent(pnlAdr, javax.swing.GroupLayout.DEFAULT_SIZE, 155, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(pnlEml, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(20,20,20)
                .addComponent(command)
                .addContainerGap())
        );
    }
    

    public String getIdentiteNom(){
        return pnlID.getIdentiteNom();
    }

    public String getIdentitePrenom1(){
        return pnlID.getIdentitePrenom1();
    }

    public String getIdentitePrenom2(){
        return pnlID.getIdentitePrenom2();
    }

    public String getIdentitePrenom3(){
        return pnlID.getIdentitePrenom3();
    }

    public String getIdentiteDateNaissance(){
        return pnlID.getIdentiteDateNaissance();
    }
    public String getIdentiteSexe(){
        return pnlID.getIdentiteSexe();
    }

    public String getAdresseNumero(){
        return pnlAdr.getAdresseNumero();
    }

    public String getAdresseVoie(){
         return pnlAdr.getAdresseVoie();
    }

    public String getAdresseLigne1(){
         return pnlAdr.getAdresseLigne1();
    }

    public String getAdresseLigne2(){
        return pnlAdr.getAdresseLigne2();
    }

    public String getAdresseCode(){
        return pnlAdr.getAdresseCode();
    }

    public String getAdresseVille(){
         return pnlAdr.getAdresseVille();
    }

    public String getAdressePays(){
         return pnlAdr.getAdressePays();
    }



    public String getTravailMail(){
        return pnlEml.getTravailMail();
    }

    public String getTravailFixe(){
        return pnlEml.getTravailFixe();
    }
    public String getTravailPortable(){
        return pnlEml.getTravailPortable();
    }
    public String getPersonnelMail(){
        return pnlEml.getPersonnelMail();
    }
    public String getPersonnelFixe(){
        return pnlEml.getPersonnelFixe();
    }
    public String getPersonnePortable(){
        return pnlEml.getPersonnePortable();
    }
    private PnlBtnGrpCommand command;


    private JScrollPane jphoto;

    private JTextArea photo;

    protected PnlIdtHmn pnlID;
    protected PnlAdressePostale pnlAdr;
    protected pnlEmail pnlEml;



}
